alias xmm='xmodmap ~/config_files/.xmodmap_custom_mappings'
alias lk='sudo loadkeys ~/config_files/.swap_esc_capslock.kmap'

alias ls='ls --color=auto --group-directories-first'
alias l='ls --color=auto --group-directories-first'
alias ll='ls -alh --color=auto --group-directories-first'

# grepping aliases
alias grep='grep --color=always'
alias hg='history | grep -i'
alias pg='ps aux | grep -i'
alias pwg='less ~/ais/ais_ | grep'
alias lg='ls -al | grep -i'
alias eg='env | grep -i'
alias ag='alias | grep -i'
alias kg='gpg -d ~/ais/ais.gpg | grep'
alias cg='cat ~/config_files/notes/cheatsheet.md | grep'

alias e='exit'
alias a='arandr'
# history 1 will grab all history; without the 1, only last 16
alias history='history 1'

# Data science shortcuts
# start kaggle venv and export KAGGLE_CONFIG_DIR
alias kag='cd ~/dev/kaggle && source venv_kaggle/bin/activate && export KAGGLE_CONFIG_DIR=~/dev/kaggle'
alias vet='cd ~/dev/kaggle/veterinary_radiography/ && source ../venv_kaggle/bin/activate'
alias ds='cd ~/dev/data_science'
# alias cc='source ../fastai2_venv/bin/activate && jupyter lab'
alias dss='source ~/dev/data_science/fastai2_venv/bin/activate'

# resolution shortcuts
alias 1920='xrandr --output Virtual-1 --mode 1920x1080'
alias 2560="
xrandr --newmode '2560x1080_60.00'  230.00  2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync; 
xrandr --addmode Virtual-1 2560x1080_60.00 ; 
xrandr --output Virtual-1 --mode 2560x1080_60.00"

# i3 power management aliases
alias logout='i3-msg exit'
alias suspend='i3lock -c 112233 && systemctl suspend'
alias lock='i3lock -c 112233'
alias freeze='sudo sh -c "echo freeze > /sys/power/state"'
alias hib='sudo sh -c "echo disk > /sys/power/state"'

# tmux aliases; lifted from oh-my-zsh plugin
alias t="tmux"
alias ta="tmux attach -t"
alias ts='tmux_session_name_set ; tmux new-session -s "$tmux_session_name"'
alias tl="tmux list-sessions"

# apt aliases
alias sai='sudo apt install'

# pacman aliases
alias sps='sudo pacman -S'
alias pss='pacman -Ss'

# git aliases
alias gst='git status'
alias gcam='git commit -am'
alias gd='git diff'
alias gp='git push origin master'
alias gl='git pull origin master'
alias grv='git remote -v'
alias glog='git log --oneline --decorate --color --graph'

# movement aliases
alias mb='cd ~/dev/websites/HumbleBlog'
alias mc='cd ~/config_files'
alias md='cd ~/documents'
alias mn='cd ~/dev/websites/rails_sites/nurse_cert'
alias mD='cd ~/Downloads'
alias mm='cd ~/mail_configs'
alias mM='cd ~/music'
alias me='cd ~/email'
alias mw='cd ~/dev/websites'

alias 1='cd ~1'
alias 2='cd ~2'
alias 3='cd ~3'
alias 4='cd ~4'
alias 5='cd ~5'
alias 6='cd ~6'
alias 7='cd ~7'
alias 8='cd ~8'
alias 9='cd ~9'

alias pw="~/kttk/pman "

# quickly file editing (mostly config files)
alias v='vim .'
alias v.='vim .'
alias vv='vim ~/.vimrc'
alias vc='vim ~/config_files/notes/cheatsheet.md'
alias vz='vim ~/.zshrc'
alias vza='vim ~/config_files/zsh/zsh_aliases'
alias vi='vim ~/.config/i3/config'
alias vm='vim ~/.muttrc'
alias vr='vim ~/.config/ranger/rc.conf'
alias vt='vim ~/.tmux.conf'
alias vn='vim ~/notes.md'
alias vq="vim ~/config_files/quotes.md"
alias vx="vim ~/.Xresources"
alias vl="vim ~/day_log.md"
alias vtd="vim ~/TODO.md"
# not sure why I took this out... not working?  
# 'docker system prune -a' is a nuke.
# alias docker-clean='sudo docker stop \$(sudo docker ps -a -q) && sudo docker rm \$(sudo docker ps -a -q)'

# aws-cli docker
# alias aws-cli-run="sudo docker run --rm --interactive --tty -v $HOME/.aws:/root/.aws amazon/aws-cli"
alias aws-cli-run="sudo docker run --rm -it -d -v $HOME/.aws:/root/.aws -v $HOME/dev/$APP_NAME/aws_code/aws_lambda_functions/:/code/ amazon/aws-cli"
# alias aws-cli-up="sudo docker run --rm -it -d --name aws_cli_container -v $HOME/.aws:/root/.aws -v $HOME/dev/$APP_NAME/aws_code/aws_lambda_functions/:/code/ amazon/aws-cli && sudo docker exec -it aws_cli_container bash"
alias aws-cli-up="sudo docker run --rm -it -d --name aws_cli_container -v $HOME/.aws:/root/.aws -v $HOME/dev/$APP_NAME/aws_code/aws_lambda_functions/:/code/ amazon/aws-cli help && sudo docker exec -it aws_cli_container bash"

# alias k="~/source_packes/kalendar-master/src/Kalendar"

# launch x server
alias x='startx'

# notmuch aliases
alias ns='notmuch search'
alias nsh='notmuch show'

# calcurse launcher alias
# alias c='calcurse'

# rails aliases
alias rs='rails server'
alias rc='rails console'
alias rt='rails test'
alias rdbm='rails db:migrate'
alias rdbs='rails db:migrate:status'
alias rdbr='rails db:reset'

# alias cd by .. or ... or ... or mv file ..../.
alias ".."='cd ..'
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."

# grab mail alias
alias gm='cd ~/mail_configs && bash ./cryptscript.sh && cd -'
alias gmf='cd ~/mail_configs && bash ./cryptscript_full.sh && cd -'
# alias gm='getmail -d && notmuch new'
# alias gm='cd ~/mail_configs && bash ./cryptscript.sh && cd -'
alias m='neomutt'

# list dirs alias
alias d="dirs -v"

# call a script to list the largest files in a git repo
alias gitrev="sh ~/config_files/git_revision_script"

# generate blog
alias gb="rm -rf ~/Downloads/output ~/Downloads/assets && cd ~/dev/websites/HumbleBlog/scripts && sh generate_blog.sh && cp -r ../output ../assets ~/Downloads && cd -"
# generate ncs site
# alias gncs="rm -rf ~/Downloads/output ~/Downloads/assets && cd ~/dev/websites/ncs/scripts && sh generate_website.sh && cp -r ../output ../assets ~/Downloads && cd -"

alias sz='source ~/.zshrc'

alias z="~/source_packages/Zotero_linux-x86_64/zotero & disown"

alias ppv='source ~/dev/podcast_project/audio_extraction_subproject/podcast_project_venv/bin/activate'
alias mpp='cd ~/dev/podcast_project/ && ppv'

alias pdf='~/source_packages/pdfstudio2018/pdfstudio2018 & disown'
